package com.jlkf.dao;

import com.jlkf.pojo.User;
import com.jlkf.view.Driver;
import com.jlkf.view.NearDriver;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    List<User> getLogin(Map<String,Object> map);
    //附近司机
    List<NearDriver> getNearDriverList(Map<String,Object> map);
    //司机用户信息
    Driver getDriver(Long dirberId);
    //司机状态
    Driver driverState(@Param("uId")Long uId);
    //后台oa使用
    List<User> getUserList(Map<String,Object> map);
    //司机登录
    List<User> getDriverLogin(Map<String,Object> map);

    List<Map> getInvitors(User user);

    List<Map> getDrivers(User user);
    
    List<User> getEnterpriseList(Map<String,Object> map);
    
    String selectMaxUserNo();
    //通过数组删除
    int deleteUser(@Param("ids")String ids);
    //在线人数
    String getOnLineNum();
    
    List<User> getNameAndTel(Map<String,Object> map);
    //查询邀请码
    Integer  queryInviattionCode(@Param("inviattionCode")String inviattionCode);
    
    List<NearDriver> getNearDriverList1(Map<String,Object> map);
    
    List<Map> mileageStatistics(Map<String,Object> map);
}